package gov.nasa.anml;

import gov.nasa.anml.lifted.History;
import gov.nasa.anml.utility.SimpleObject;
import gov.nasa.anml.utility.iHashMap;
import gov.nasa.anml.utility.iHashMap.Entry;


//implements cloning of the values of the map.  History does a shallow clone.
public class iFluentHistoryMap extends iHashMap<History<? extends SimpleObject>> {
	public Entry<History<? extends SimpleObject>> createEntry(int index, int key, History<? extends SimpleObject> value) {
		Entry<History<? extends SimpleObject>> e = table[index];
		table[index] = new Entry<History<? extends SimpleObject>>(key, value.clone(), e);
		size++;
		return e;
	}
	public iFluentHistoryMap clone() {
		return (iFluentHistoryMap) super.clone();
	}
}